﻿using Microsoft.Extensions.DependencyInjection;
using NetMicro.QrCode.QrCoder;

namespace NetMicro.QrCode
{
    public static class ServiceCollectionExtensions
    {
        /// <summary>
        /// 二维码生成
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddQrCode(this IServiceCollection services)
        {
            services.AddScoped<IQrCodeService, QrCoderService>();
            return services;
        }
    }
}
